package com.hngy.xpq.android_practice.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Order {
    public static final String DATABASE_DATA = "db_xpq_order";
    public static final String DATABASE_TABLE = "xpq_order";
    public static final int DATABASE_INS = 1;

    public static final String NOTEPAD_ID = "order_xpq_id";          //订单id
    public static final String NOTEPAD_IMAGE = "order_xpq_image";   //商品图
    public static final String NOTEPAD_USER_NAME = "user_Xpq_name";      //用户名
    public static final String NOTEPAD_PHONE = "order_xpq_phone";              //用户联系电话
    public static final String NOTEPAD_MERCHANT_NAME = "merchant_xpq_name";    //商家名
    public static final String NOTEPAD_COMM_NAME = "comm_xpq_name";      //商品名
    public static final String NOTEPAD_PRICE = "comm_xpq_price";         //商品价格
    public static final String NOTEPAD_TIME = "order_xpq_time";                //订单生成时间
    public static final String NOTEPAD_STATUS = "order_xpq_status";            //订单状态
    public static final String NOTEPAD_DES = "order_xpq_des";                  //订单备注

    public static final String getTimeDate(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
        Date date = new Date(System.currentTimeMillis());
        return simpleDateFormat.format(date);
    };
}
